using System.Collections.Generic;

namespace RBAC.Read.Api.Application.Dto.Approval
{
    /// <summary>
    /// 审批流程详情 DTO（包含节点）
    /// </summary>
    public class ApprovalProcessDetailDto
    {
        public long Id { get; set; }
        public string ProcessName { get; set; } = string.Empty;
        public string Description { get; set; } = string.Empty;
        public string ProcessType { get; set; } = string.Empty;
        public int BusinessType { get; set; }
        public int Status { get; set; }
        public bool IsEnabled { get; set; }
        public List<ApprovalNodeDto> Nodes { get; set; } = new();
    }

    /// <summary>
    /// 审批节点 DTO
    /// </summary>
    public class ApprovalNodeDto
    {
        public string NodeName { get; set; } = string.Empty;
        public long ApproverId { get; set; }
        public string ApproverName { get; set; } = string.Empty;
        public int ApprovalType { get; set; }
        public int NodeOrder { get; set; }
    }
}
